<?php

/**
 * Created by PhpStorm.
 * User: HaiXin.Sun
 * Date: 16/4/11
 * Time: 15:11
 */
class DevelopModel extends BaseModel
{
    var $table = '';
    var $prikey = 'id';
    var $_name = 'develop';

    public function addLog($data)
    {
        if (is_array($data)) $values = json_encode($data);
        else $values = $data;
        $sql = sprintf("INSERT INTO `%s` (`log`) VALUES ( '%s' )", DB_PREFIX_NEW . 'develop_log', $values);
        $this->query($sql);
    }
}